completion /usr/lib/snapd/etelpmoc.sh error
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
$ snap version
snap 2.43.2
snapd 2.43.2
series 16
ubuntu 16.04
kernel 4.15.0-58-generic
$ snap run --command=complete gh 9 9 3 1 " " 'gh ' gh ""
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.UTF-8)
/usr/lib/snapd/etelpmoc.sh: line 71: /usr/share/bash-completion/bash_completion: No such file or directory
/snap/gh/x4/completion.sh: line 16: _get_comp_words_by_ref: command not found
default
According to https://forum.snapcraft.io/t/debugging-tab-completion/4198 this is a bug:
> If you see a different error from etelpmoc.sh, most like we broke something! So sorry. Please let us know; we’ll sort it.
> Most often though you’ll see an error from your script. You should be able to debug as usual, here.
Completion doesn't work at all.
However manually running
$ . /snap/gh/current/completion.sh
works so there's nothing wrong with the completion script itself.
$ snap run --shell gh
$ cd $SNAP
/snap/gh/x5$
/snap/gh/x5$ source /usr/share/bash-completion/bash_completion
bash: /usr/share/bash-completion/bash_completion: No such file or directory
Source repo with snapcraft.yml: https://github.com/casperdcl/cli/tree/snap
Evaluation history
No evaluation history available.